package com.lct.random;

import java.util.Random;

public class RandomDemo2 {
    public static void main(String[] args) {


        Random r = new Random();

        //创建 0 - 9的随机数
        int number = r.nextInt(3,31);
        System.out.println(number);


        int number1 = r.nextInt(10) + 1;
        System.out.println(number1);

        int number3 = r.nextInt(15) + 3;
        System.out.println(number3);



    }
}
